<?
$nl = "\n";

$g_text_account_already_exist =
	'Account with specified e-mail address already exists.<br>'.$nl.
	'To create new W3Monitor account, please use different e-mail address.<br>'.$nl.
	'You can also '.
	'<a href="'.$r.'members/login.php">login</a> using this e-mail address or '.
	'<a href="'.$r.'members/password_recovery.php">recover</a> your password.';

$g_text_incorrect_email =
	'Incorrect "E-mail" address.';

$g_text_test_sms_sent =
	'Message sent.';
$g_text_test_sms_error =
	'Error occured.';
$g_text_test_sms_default =
	'Test+message+from+W3Monitor+service.';
$g_text_test_sms_empty =
	'Please enter valid destionation mobile number!';

$g_text_incorrect_password2 =
	'Field "password" do not match field "password2".';


$g_text_incorrect_old_password =
	'Incorrect "old password".';

$g_text_incorrect_login =
	"Incorrect login.<br>".$nl.
	"Check e-mail address and password, and try again.";

$g_text_account_not_activated =
	"Account is not activated yet. Check your [%EMAIL%] inbox for the account ".
	"activation details from W3Monitor. If you don't see the email, try checking ".
	"your JUNK or SPAM folder.";

$g_text_account_expired =
	"Account expired, you should upgrade your account.";

$g_text_account_not_found = /*password recovery*/
	"Account with specified email address not found.<br>".$nl.
	"Please, check email address, and try again.";



function check_and_show_error($condition, $msg)
{
	if (!$condition) return;
	echo '<p class="textError">'.$msg."</p>\n";
}

function check_and_show_errors($error_code, &$error_message_map)
{
	foreach ($error_message_map as $ec => $msg)
	{
		check_and_show_error(@$error_code == $ec, $msg);
	}
}
?>